
export default class Utils {

    /**
     * s = at*at/2
     * @param a 
     * @param s 
     */
    static getV(a: number, s: number): number {
        let h = 0;
        let v0 = 0;
        let t = 0;
        if (a > 0) {
            while (h < s) {
                v0 += a;
                h += v0;
                t++;
            }
        }
        return v0
    }

    static  getItemType(id: number) {
        return Math.floor(id / 1000)
    }


}
